LearningSession.CurrentActivityId Property

Gets the unique identifier of the current activity. It is unique for all activities in the persisted storage location.

Parent Type: LearningSession

Namespace: Microsoft.LearningComponents

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public long CurrentActivityId

{ get; }
Exceptions
Exception type Condition
InvalidOperationException

Thrown if there is no current activity in the session.

Remarks

When possible, use this activity identifier (rather than CurrentActivityKey) to access activity information, as it will provide better performance.